package day03;

/**
 * @author yzg
 * @desc TODO
 * @date 2025/4/10
 */
public class HundredChicken {
    public static void main(String[] args) {
        System.out.println("公鸡\t母鸡\t小鸡");
        for (int i = 0; i <= 100/5; i++) {//i为公鸡数
            for (int j = 0; j <= 100/3; j++) {//j为母鸡数
                    if(i * 5 + j * 3 + (100 - i - j) / 3 == 100 && (100 - i - j) % 3 == 0){
                        System.out.println(i + "\t" + j + "\t" + (100 - i - j));
                    }
            }
        }
    }
}
